
<html xmlns:th="http://www.thymeleaf.org">
<head >
    <title>秒杀页面</title>
    <meta charset="UTF-8">
    <link
            href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
            rel="stylesheet">
    <!-- 新 Bootstrap 核心 CSS 文件 -->
    <link
            href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css"
            rel="stylesheet">
</head>
<body>
    <div class="container">
        <div class="panel panel-default text-center">
            <div class="panel-heading">
                <h3 th:text="${seckill.name}"></h3>
            </div>
        </div>
        <div class="panel-body">
            <h2 class="text-danger text-center">
<!--                显示time图标-->
                <span class="glyphicon glyphicon-time"></span>
<!--                显示倒计时-->
                <span class="glyphicon" id="seckill-box"></span>
            </h2>
        </div>
    </div>

<!--    登陆弹出框，输入电话-->
    <div id="killPhoneModal" class="modal fade">
        <div class="modal-dialog">
            <div class="modal-content">
                <div class="modal-header">
                    <h3 class="modal-title text-center">
                        <span class="glyphicon glyphicon-phone">秒杀电话</span>
                    </h3>
                </div>
                <div class="modal-body">
                    <div class="row">
                        <div class="col-xs-8 col-xs-offset-2">
                            <input type="text" name="killPhone" id="killPhoneKey"
                                   placeholder="填手机号" class="from-control"/>
                        </div>
                    </div>
                </div>
                <div class="modal-footer">
<!--                    验证信息-->
                    <span id="killPhoneMessage" class="glyphicon"></span>
                    <button type="button" id="killPhoneBtn" class="btn btn-success">
                        <span class="glyphicon glyphicon-phone"></span>
                        submit
                    </button>
                </div>
            </div>
        </div>

    </div>

<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="https://cdn.staticfile.org/jquery/2.1.1/jquery.min.js"></script>

<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="https://cdn.staticfile.org/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!--jQuery cookie操作插件-->
<script src="https://cdn.bootcss.com/jquery-cookie/1.4.1/jquery.cookie.min.js"></script>
<!--jQuery countDown倒计时插件-->
<script src="https://cdn.bootcss.com/jquery.countdown/2.2.0/jquery.countdown.min.js"></script>
<!--开始编写交互逻辑-->
<script type="text/javascript" src="/seckill.js" ></script>
<script type="text/javascript">
    $(function(){
        seckill.detail.init({
            // 使用EL表达式传入参数
            seckillId : [[${seckill.seckillId}]],
            startTime : [[${seckill.startTime.time}]],//毫秒时间
            endTime : [[${seckill.endTime.time}]]
        });
    });
</script>
</body>
</html>
